import Input from './input.vue';
import Password from './input-password.vue';
import InputNumber from './input-number.vue';
import Radio from './radio.vue';
import Checkbox from './checkbox.vue';
import Select from './select.vue';
import Switchs from './switchs.vue';
import Silder from './slider.vue';
import TimePicker from './time-picker.vue';
import Upload from './upload.vue';
import Editor from './editor.vue';

const CompFormItem = {
	components: {
		Input,
		Password,
		InputNumber,
		Radio,
		Checkbox,
		Select,
		Switchs,
		Silder,
		TimePicker
		// Upload,
		// Editor,
	},
	name: 'FormItem',
	props: {
		formItem: {
			required: true
		}
	},
	render(h) {
		return h(`${this.formItem.type}`);
	}
};

export default CompFormItem;
